package com.aispeech.asr.clib.vad;

public enum EVFrameState {
    SIL,
    SPEECH_BEGIN,
    SPEECH_END;

    public static EVFrameState from(int value) {
        EVFrameState state = null;

        for (EVFrameState evFrameState : EVFrameState.values()) {
            if (evFrameState.ordinal() == value) {
                state = evFrameState;
                break;
            }
        }

        return state;
    }
}
